package com.java2_5;

public class Student {
    String name;
    int age;
    int index;
    int phone;

    public Student(){
        //无参数的构造器
    }

    public Student(String name,int age,int index,int phone){
        //有参数的构造器
        //this 修饰 this代表这个类、对象的地址
        this.name = name;
        this.age = age;
        this.index = index;
        this.phone = phone;
    }
}
